<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0110)https://www.17sucai.com/preview/1/2015-10-20/%E7%99%BB%E5%BD%95%E6%B3%A8%E5%86%8C%E8%A1%A8%E5%8D%95/index.html -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>登录注册界面</title>
<script src="./index_files/jquery.min.js"></script>
<link rel="stylesheet" href="./index_files/style.css">
<style>
	p{
		color:red;
	}
	#submit{
		background:blue;
		cursor:pointer;
	}
	#submit:hover{
		background:#c2dec7;
	}
</style>
<script>
	$(function(){
		$("#user").blur(function(){
			if($("#user").val()==""){
				$("#oneMsg").html("用户不能为空");
			}else{
				$("#oneMsg").html("");
			}
				
		})
		
	})
	$(function(){
		$("#word").blur(function(){
			if($("#word").val()==""){
				$("#twoMsg").html("用户不能为空");
			}else{
				$("#twoMsg").html("");
			}
				
		})
		$("#submit").click(function(){
			var url = "../../User/findUser.action";
			var data = {userName:$("#user").val(),userPwd:$("#word").val()};
			$.post(url,data,function(obj){
				if(obj.userId!=null && obj.userId!=""){
					location.href='../index.html?id='+obj.userId;
				}else{
					$("#twoMsg").html("用户名或者密码错误");
				}
			},'json')
		})
	})

</script>
</head>
<body>

<div class="login-container">
	<h1>后台登录界面</h1>
	
	<form id="loginForm">
		<div>
			<input type="text" name="userName" placeholder="用户名" id="user">
			<p id="oneMsg"></p>
		</div>
		<div>
			<input type="password" name="userWord" placeholder="密码" id="word">
			<p id="twoMsg"></p>
		</div>
		<input type="button" value="登 陆" id="submit">
	</form>
</div>
<ul id="supersized" class="quality" style="visibility: visible;"><li class="slide-0 prevslide" style="visibility: visible; opacity: 1;"><a target="_blank"><img src="./reight_files/1.jpg" style="width: 1239px; left: 0px; top: -33.5px; height: 768.18px;"></a></li><li class="slide-1 activeslide" style="visibility: visible; opacity: 1;"><a target="_blank"><img src="./reight_files/2.jpg" style="width: 1239px; left: 0px; top: -83px; height: 867.3px;"></a></li><li class="slide-2" style="visibility: visible; opacity: 1;"><a target="_blank"><img src="./reight_files/3.jpg" style="width: 1239px; height: 780.57px; left: 0px; top: -40px;"></a></li></ul><object id="yhaitaoplugin" type="application/x-npHaitaoPlugin" style="position:absolute;left:-9000px;top:-9000px;" width="0" height="0"></object><a data-cltversion="2.4.26" data-cltsource="60036" data-cltuuid="extgq8qJhj3JS6onBYTqfAtGzvJxVq4lAcj3" data-cltats="4" href="javascript:" id="yht-info-explugin" style="display: none;"></a><div id="qb-sougou-search" style="display: none; opacity: 0;"><p>搜索</p><p class="last-btn">复制</p><iframe src="./reight_files/saved_resource.html"></iframe></div></body></html>
